package Comprehensive_03;

import java.util.ArrayList;
import java.util.Collections;

public class Demo9 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"test","张三","李四","test","test");
        list.removeIf("test"::equals);
        System.out.println(list);

    }
}
